#include "lino.h"
#include "lifeprog.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>  
main(int argc, char ** argv)
{ 
 char inb[100];
       // int outf = open("pipe2",O_WRONLY|O_NONBLOCK);
         int outf=4;int inf=3;
    //    int inf = open("pipe",O_RDONLY);// |O_NONBLOCK);
	
	 write(outf,"demo2",6);
	int count;
        do{count= read(inf,inb,6);}while(count <=0);
	printf("output from pipedemo2 %d %s\n",count,inb);
}
